package com.daichi.mapper;

import com.daichi.common.dto.SysMenuDto;
import com.daichi.entity.SysMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Daichi Chou
 * @since 2021-06-05
 */
@Mapper
@Repository
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    List<SysMenuDto> getUserNavByMenuIds(List<Long> menuIds);

    List<SysMenu> getTreeList();

    List<SysMenu> findMenuByParentId(Long id);
}
